package kr.hkit.powerjava.chapter04;

public class lab {
	public static void main (String[] args) {
		double w;
		double h;
		double area;
		double perimeter;
		
		w = 10.0;
		h = 5.0;
		area = w*h;
		perimeter = 2 * (w+h);
		
		System.out.println("사각형의 넓이:" + area);
		System.out.println("사격형의 둘레:" + perimeter);	
	}
}
